package com.atguigu.yygh.hosp.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;

/*==========================================
      时 间:   2022-04-18
      讲 师:   刘  辉
      描 述:   尚硅谷教学团队
 ==========================================*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(value = "User")
public class User {

    private String id;
    private String username;


    private boolean gender;

    private Date birth;
}
